package com.managment.data;

import java.io.Serializable;
import java.sql.Time;

public class Task implements Serializable{
	private static final long serialVersionUID = 1L;
	private Media media;
	private Time eventTime;
	private String state;
	private int id = -1;
	private int profilId = -1;
	
	public Task(Media media, Time eventTime, String state){
		this.media = media;
		this.eventTime = eventTime;
		this.state = state;
	}
	
	public boolean validateTask(){
		if (media!=null && eventTime!=null && state!=null ){
			return true;
		}
		return false;
	}
	
	public void setMedia(Media media) {
		this.media = media;
	}
	public Media getMedia() {
		return media;
	}
	
	public void setState(String state) {
		this.state = state;
	}
	public String getState() {
		return state;
	}
	
	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setProfilId(int profilId) {
		this.profilId = profilId;
	}

	public int getProfilId() {
		return profilId;
	}
	

	public Time getEventTime() {
		return eventTime;
	}

	public void setEventTime(Time eventTime) {
		this.eventTime = eventTime;
	}


}
